Skip to content

refactor: use constants/float64/nan in number/float64/base/ulp-difference - #16786

Open
autistic-avenger wants to merge 1 commit into
stdlib-js:developfrom
autistic-avenger:use_nan
Open

autistic-avenger wants to merge 1 commit into
stdlib-js:developfrom
autistic-avenger:use_nan

Conversation

@autistic-avenger

@autistic-avenger autistic-avenger commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Resolves a part of #11743.

Description

What is the purpose of this pull request?

This pull request:

  • replaces inline 0.0/0.0 in number/float64/base/ulp-difference/src/main.c with STDLIB_CONSTANT_FLOAT64_NAN from @stdlib/constants/float64/nan.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Reference Packages

Did the content of this pull request follow one or more existing packages? Answering is optional.

This pull request followed these packages:

  • number/float64/base/ulp-difference

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".


@stdlib-js/reviewers

@autistic-avenger
autistic-avenger requested a review from a team November 23, 2026 05:07
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Nov 23, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
number/float64/base/ulp-difference $\\color{green}319/319$
$\\color{green}+100.00\\%$
$\\color{green}30/30$
$\\color{green}+100.00\\%$
$\\color{green}6/6$
$\\color{green}+100.00\\%$
$\\color{green}319/319$
$\\color{green}+100.00\\%$

The above coverage report was generated for the changes in this PR.

@stdlib-bot stdlib-bot added the Good First PR A pull request resolving a Good First Issue. label Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants